package com.wyl.xue.admin.system.mybatis.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName: SystemDepartment
 * @Function: 部门表
 * @Date: 2019/12/15 23:55
 * @author wangyl
 * @version V1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "system_department")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class SystemDepartment extends SystemBase {
    /**
     * 部门主键ID
     */
    @TableId(value = "department_id", type = IdType.ASSIGN_ID)
    private Long departmentId;

    /**
     * 部门名称
     */
    private String departmentName;


    /**
     * 上级部门
     */
    private Long parentId;

    /**
     * 部门描述
     */
    private String introduction;

    /**
     * 更新版本
     */
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;

    /**
     * 操作人员
     */
    private String operator;


}